/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.panomedic.gui;

/**
 *
 * @author Yare
 */
public class WaitDoer implements Runnable {

    private WaitDialog waitDialog;
    public boolean running = true;

    public WaitDoer() {
        waitDialog = new WaitDialog();
    }

    public void run() {
        waitDialog.show();
        while (running) {
            try {
                Thread.sleep((int) (1));
            } catch (InterruptedException exception) {
            }
        }
        waitDialog.hide();
    }
    
    public void stop() {
        running = false;
    }
        
}
